import 'package:flutter/material.dart';
import 'package:hi_common/util/color.dart';

///底部阴影
BoxDecoration? bottomBoxShadow(BuildContext context) {
  return BoxDecoration(color: Theme.of(context).primaryColor, boxShadow: [
    BoxShadow(
        color: Colors.grey[100]!,
        offset: const Offset(0, 5), //xy轴偏移
        blurRadius: 5.0, //阴影模糊程度
        spreadRadius: 1 //阴影扩散程度
        )
  ]);
}

Widget loadMore() {
  return const Center(
    child: Padding(
      padding: EdgeInsets.all(16),
      child: CircularProgressIndicator(
        color: primary,
      ),
    ),
  );
}
